library(quantmod)

getSymbols("EDU",src="yahoo",from="2013-08-20",to="2013-09-02")

##开盘价等信息
new.environment<-new.env()
getSymbols("AAPL",env=new.environment,src="yahoo",from="2013-08-20",to="2013-09-02")
ls(envir=new.environment)
get("AAPL",envir=new.environment)

##汇率
new.environment<-new.env()
getFX("HKD/USD",from="2015-08-01",env=new.environment)
get("HKDUSD",envir=new.environment)

##财务报表
getFinancials("AAPL")
viewgetgetFinancials(AAPL.f)

##股息数据
getDividends("AAPL",from="2013-08-20",to="2015-09-02",env=new.environment,verbose = TRUE)


